package com.example.proxy.stati.demo1;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ZhangLiang
 * @Date: 2021/07/08/11:53
 * @Description:
 */
public class SmsProxy implements SmsService{
    private final SmsService smsService;

    public SmsProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public String send(String message) {
        System.out.println("调用方法之前");
        smsService.send(message);
        System.out.println("调用方法之后");
        return message;
    }
}
